<?php /* Smarty version 2.6.18, created on 2010-03-11 10:00:46
         compiled from dataFMAOrgFisher.tpl */ ?>
<script type="text/javascript">	
	var calendar1 = new ekimo_calendar("l_show","l_date","License Date", "ldatecontainer");
	var calendar2 = new ekimo_calendar("b_show","b_date","Birth Date", "bdatecontainer");
</script>
<form method="POST" action="/admin/dataFMAFisherSave" enctype="multipart/form-data">
<div>
	<input type="hidden" name="fisher_id" value="<?php echo $this->_tpl_vars['fisher']['fisher_id']; ?>
">
	<input type="hidden" name="org_id" value="<?php echo $this->_tpl_vars['org_id']; ?>
">
	<div id="drag_bar" class="blue">
		<h2 class="dotted">Fisher</h2>
	</div>
	<br>
	<div style="overflow: auto;height:340px;" width="100%">
	<table>		
		<tr>
			<td width="40%"><label>Last Name</label></td>
			<td><input type="text" name="last_name" value="<?php echo $this->_tpl_vars['fisher']['last_name']; ?>
"></td>
		</tr>
		<tr>
			<td width="40%"><label>First Name</label></td>
			<td><input type="text" name="first_name" value="<?php echo $this->_tpl_vars['fisher']['first_name']; ?>
"></td>
		</tr>				<tr>			<td width="40%"><label>Fisher Code Number</label></td>			<td><input type="text" name="fisher_code_number" value="<?php echo $this->_tpl_vars['fisher']['fisher_code_number']; ?>
"></td>		</tr>
		<tr valign="top">
			<td>
				<label>Photo</label><br>
			</td>
			<td>
				<img src="<?php echo $this->_tpl_vars['pic']['photo']; ?>
" width="100px" height="100px" >
				<input type="file" name="photo">
			</td>
		</tr>
		<tr>	
			<td><label>Fishing Area</label></td>
			<td>
				<select name="fishing_area">
					<?php $_from = $this->_tpl_vars['fishing_areas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['fishing_area']):
?>
						<option value="<?php echo $this->_tpl_vars['fishing_area']['fishing_area_id']; ?>
"
						<?php if ($this->_tpl_vars['fishing_area']['fishing_area_id'] == $this->_tpl_vars['fisher']['fishing_area_id']): ?>
							selected
						<?php endif; ?>
						>
						<?php echo $this->_tpl_vars['fishing_area']['fishing_area_name']; ?>
</option>
					<?php endforeach; endif; unset($_from); ?>
				</select>
			</td>
		</tr>
		<tr>
			<td>
				<label>Signature</label><br>
			</td>
			<td>
				<img src="<?php echo $this->_tpl_vars['pic']['signature']; ?>
" width="100px" height="100px" >
				<input type="file" name="signature" >
			</td>
		</tr>
		<tr>
			<td>
				<label>Fingerprint Photo</label><br>
			</td>
			<td>
				<img src="<?php echo $this->_tpl_vars['pic']['fingerprint']; ?>
" width="100px" height="100px" >
				<input type="file" name="fingerprint">
			</td>
		</tr>
		<tr>
			<td><label>Gender</label></td>
			<td>
				<input type="radio" name="gender" value="Male"
				<?php if ($this->_tpl_vars['fisher']['gender'] == 'Male'): ?> checked <?php endif; ?>
				>Male
				<input type="radio" name="gender" value="Female"
				<?php if ($this->_tpl_vars['fisher']['gender'] == 'Female'): ?> checked <?php endif; ?>
				>Female
			</td>
		</tr>
		<tr>
			<td><label>Birthdate</label></td>
			<td>
				<label for="b_date" class="yui-skin-sam">
					<input type="text" name="b_date" id="b_date" value="<?php echo $this->_tpl_vars['contact']['birth_date']; ?>
">
					<a href="javascript:void(0);" id="b_show">
							<img alt="Calendar" src="/app/default/www/images/calendar.jpg" border="0"/>
						</a>
					<div id="bdatecontainer" style="display:none;position:absolute"></div> 
				</label>
			</td>
		</tr>
		<tr>
			<td><label>Blood Group</label></td>
			<td><input type="text" name="blood_group" value="<?php echo $this->_tpl_vars['contact']['blood_group']; ?>
"></td>
		</tr>
		<tr>
			<td><label>Height</label></td>
			<td><input type="text" name="height" value="<?php echo $this->_tpl_vars['contact']['height']; ?>
"></td>
		</tr>
		<tr>
			<td><label>Inactive</label></td>
			<td><input type="checkbox" name="inactive" value="1" <?php if ($this->_tpl_vars['contact']['inactive'] == 1): ?>checked<?php endif; ?></td>
		</tr>
		<tr>
			<td><label>Telephone Number</label></td>
			<td><input type="text" name="telephone_no" value="<?php echo $this->_tpl_vars['contact']['telephone_no']; ?>
"></td>
		</tr>
		<tr>
			<td><label>Fax Number</label></td>
			<td><input type="text" name="fax_no" value="<?php echo $this->_tpl_vars['contact']['fax_no']; ?>
"></td>
		</tr>
		<tr>
			<td><label>Email</label></td>
			<td><input type="text" name="email" value="<?php echo $this->_tpl_vars['contact']['email']; ?>
"></td>
		</tr>
		<tr>
			<td><label>License Date</label></td>
			<td>
				<label for="l_date" class="yui-skin-sam">
					<input type="text" name="l_date" id="l_date" value="<?php echo $this->_tpl_vars['contact']['license_date']; ?>
">
					<a href="javascript:void(0);" id="l_show">
						<img alt="Calendar" src="/app/default/www/images/calendar.jpg" border="0"/>
					</a>
					<div id="ldatecontainer" style="display:none;position:absolute"></div> 
				</label>
			</td>
		</tr>
		<tr>
			<td><label>Street</label></td>
			<td><input type="text" name="address1" value="<?php echo $this->_tpl_vars['address']['address1']; ?>
"></td>
		</tr>
		<tr>
			<td><label>City</label></td>
			<td><input type="text" name="city" value="<?php echo $this->_tpl_vars['address']['city']; ?>
"></td>
		</tr>
		<tr>
			<td><label>Province</label></td>
			<td><input type="text" name="province" value="<?php echo $this->_tpl_vars['address']['province']; ?>
"></td>
		</tr>
		<tr>	
			<td><label>Country Code</label></td>
			<td>
				<select name="country_code">
					<?php $_from = $this->_tpl_vars['countries']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['country']):
?>
						<option value="<?php echo $this->_tpl_vars['country']['country_code']; ?>
"
						<?php if ($this->_tpl_vars['country']['country_code'] == $this->_tpl_vars['address']['country_code']): ?>
							selected
						<?php endif; ?>
						>
						<?php echo $this->_tpl_vars['country']['country']; ?>
</option>
					<?php endforeach; endif; unset($_from); ?>
				</select>
			</td>
		</tr>
		<tr>
			<td><label>Zip</label></td>
			<td><input type="text" name="zip" value="<?php echo $this->_tpl_vars['address']['zip']; ?>
"></td>
		</tr>
		<tr valign="top">
			<td><label>Remarks</label></td>
			<td><textarea name="remarks"><?php echo $this->_tpl_vars['contact']['remarks']; ?>
</textarea></td>
		</tr>
	</table>
	</div>
	<input type="submit" value="Save">
	<input type="button" value="Cancel" onclick="popup('popUpDiv');">
</div>
</form>